package cn.ava.system.mapper;

import cn.ava.system.domain.Role;
import cn.ava.basic.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ava
 * @since 2022-07-11
 */
@Mapper
public interface RoleMapper extends BaseMapper<Role> {

    void deleteRoleMenu(Long id);

    void deleteRolePermission(Long id);

    void addRoleMenu(@Param("rId") Long id, @Param("mIds")List<Long> menus);

    void addRolePermission(@Param("rId")Long id, @Param("pIds") List<Long> permission);

}
